package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.product.entity.BaseCategory1;
import com.atguigu.gmall.product.mapper.BaseCategory1Mapper;
import com.atguigu.gmall.product.service.BaseCategory1Service;
import com.atguigu.gmall.product.vo.CategoryTreeVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseCategory1ServiceImpl extends ServiceImpl<BaseCategory1Mapper, BaseCategory1> implements BaseCategory1Service {


    @Override
    public List<CategoryTreeVo> getCategoryTree() {
        return baseMapper.getCategoryTree();
    }

    @Override
    public CategoryTreeVo getCategoryTreeByCategory3Id(Long c3Id) {
        return baseMapper.getCategoryTreeByCategory3Id(c3Id);
    }
}
